package com.mall.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户收藏表
 * @TableName user_favorite
 */
@TableName(value ="user_favorite")
@Data
public class UserFavorite implements Serializable {
    /**
     * 收藏ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long user_id;

    /**
     * 商品ID
     */
    private Long product_id;

    /**
     * 收藏时间
     */
    private LocalDateTime created_time;

    private static final long serialVersionUID = 1L;
}